package com.hycreate.platform.modules.product.element;

import org.hibernate.validator.constraints.Length;

import com.hycreate.platform.common.persistence.DataEntity;

/**
 * 产品配件关系Entity
 * @author hoader
 * @version 2017-01-09
 */
public class SfProductElement extends DataEntity<SfProductElement> {
	
	private static final long serialVersionUID = 1L;
	private String productId;		// 产品ID
	private String elementId;		// 配件ID
	
	public SfProductElement() {
		super();
	}

	public SfProductElement(String id){
		super(id);
	}

	@Length(min=0, max=64, message="产品ID长度必须介于 0 和 64 之间")
	public String getProductId() {
		return productId;
	}

	public void setProductId(String productId) {
		this.productId = productId;
	}
	
	@Length(min=0, max=64, message="配件ID长度必须介于 0 和 64 之间")
	public String getElementId() {
		return elementId;
	}

	public void setElementId(String elementId) {
		this.elementId = elementId;
	}
	
}